import { ElNotification, ElMessageBox } from "element-plus";
import nProgress from "nprogress";
export function toast(message, type = "success") {
  return ElNotification({
    message,
    type,
    duration: 3000,
  });
}
export function showModal(title, content, type) {
  return ElMessageBox.confirm(
    content,
    title,
    {
      confirmButtonText: '确定',
      cancelButtonText: '取消',
      type,
    }
  )
}
export function showFullLoading() {
  nProgress.start();
}

export function hideFullLoading() {
  nProgress.done();
}